package main

import (
	"fmt"
	"io/ioutil"
	"os"
)

func main() {
	inputFile := "input.dat"
	outputFile := "products_copy.txt"
	file, err := ioutil.ReadFile(inputFile)
	if err != nil {
		fmt.Fprintf(os.Stderr, "File Error : %s \n", err)
	}
	fmt.Println(string(file))
	err1 := ioutil.WriteFile(outputFile, file, 0644)
	if err1 != nil {
		panic(err1.Error())
	}
}
